package co.laomag.coffee.model.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * ch_discovery
 * @author 
 */
public class ChDiscovery implements Serializable {
    /**
     * 发现的文章主键id
     */
    private String discoveryId;

    /**
     * 作者 对应管理员id
     */
    private String author;

    /**
     * 标题
     */
    private String title;

    /**
     * 封面图片base64
     */
    private String cover;

    /**
     * 文章内容
     */
    private String content;

    /**
     * 点赞数
     */
    private Long like;

    /**
     * 收藏数
     */
    private Long collection;

    /**
     * 显示的评论数
     */
    private Long comments;

    /**
     * 状态 0不显示 1显示 2删除
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 最后编辑时间
     */
    private Date updatetime;

    private static final long serialVersionUID = 1L;

    public String getDiscoveryId() {
        return discoveryId;
    }

    public void setDiscoveryId(String discoveryId) {
        this.discoveryId = discoveryId;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getLike() {
        return like;
    }

    public void setLike(Long like) {
        this.like = like;
    }

    public Long getCollection() {
        return collection;
    }

    public void setCollection(Long collection) {
        this.collection = collection;
    }

    public Long getComments() {
        return comments;
    }

    public void setComments(Long comments) {
        this.comments = comments;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        return "ChDiscovery{" +
                "discoveryId='" + discoveryId + '\'' +
                ", author='" + author + '\'' +
                ", title='" + title + '\'' +
                ", cover='" + cover + '\'' +
                ", content='" + content + '\'' +
                ", like=" + like +
                ", collection=" + collection +
                ", comments=" + comments +
                ", status=" + status +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                '}';
    }
}